package ouyangye;

public class rectangle extends shape{
    private double length;
    private  double width;

    public rectangle(String name,double length,double width){
        super(name);
        this.length=length;
        this.width=width;
    }
    @Override
    public double Area(){
        return length*width;
    }
    @Override
    public double Long(){
        return 2*(length+width);
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }
}
